<?php

// phpMyRealty 3
//
// File Name: menu.php
// File Location : ./templates/default/
//
// Copyright (c)2009 phpMyRealty.com
//
// e-mail: support@phpMyRealty.com

?>
<!-- Menu : start -->

<?php 

   echo table_header ($lang['Menu']);

   echo '<ul>';

   echo '<li class="arrow"> <a href="' . URL . '/">' . $lang['Menu_Home'] . '</a><br /><br />';

   if (!isset($_SESSION['login']) && $conf['rewrite'] == 'ON')
   echo '<li class="arrow"> <a href="' . URL . '/submit.html">' . $lang['Menu_Submit_Listing'] . '</a><br />';
   if (!isset($_SESSION['login']) && $conf['rewrite'] != 'ON')
   echo '<li class="arrow"> <a href="' . URL . '/submit.php">' . $lang['Menu_Submit_Listing'] . '</a><br />';

   if ($conf['rewrite'] == 'ON')
   echo '<li class="arrow"> <a href="' . URL . '/login.html">' . $lang['Menu_User_Login'] . '</a><br />';
   else
   echo '<li class="arrow"> <a href="' . URL . '/login.php">' . $lang['Menu_User_Login'] . '</a><br />';

   if ($conf['rewrite'] == 'ON')
   echo '<li class="arrow"> <a href="' . URL . '/compare.html">' . $lang['Compare'] . '</a><br />';
   else
   echo '<li class="arrow"> <a href="' . URL . '/compare.php">' . $lang['Compare'] . '</a><br />';

   echo '<li class="arrow"> <a href="' . URL . '/mail.php">' . $lang['Menu_Contact_Us'] . '</a><br />';

   echo '<li class="arrow"> <a href="' . URL . '/sitemap.php">' . $lang['Menu_Site_Map'] . '</a><br />';

   if (auth_check($session->fetch('login'), $session->fetch('password')))
  	 echo '<li class="arrow"> <a href="' . URL . '/index.php?req=logout" style="color : white; font-weight : bold; background : red; padding : 3px;">' . $lang['Realtor_Logout'] . '</a><br />';

   echo '<br /><li class="arrow"> <a href="' . URL . '/admin/">Administrator</a><br />';

   echo '</ul>';

   echo table_footer (); ?>

<!-- Menu : stop -->
